<template>
  <!-- 组建的结构 -->
  <div class="demo">
    <h2>学生姓名:{{ studentName }}</h2>
    <h2>学生年龄:{{ age }}</h2>
  </div>
</template>

<script>
export default {
  name: "StudentName",
  data() {
    return {
      studentName: "jian",
      age: 18,
    };
  },
};
</script>

<style>
/* 组建的样式 */
.demo {
  background-color: skyblue;
}
</style>